home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / game / board / Exchess.lha / EXChess / const.h < prev    next >
C/C++ Source or Header  |  1998-04-06  |  894b  |  31 lines

  1. /* Global constants used all over the program */
  2.  
  3. // Piece value, indexed by type
  4. extern int value[7];
  5.  
  6. // Lazy eval cutoff during search
  7. extern int lazy[4];
  8.  
  9. // Piece names for output routines
  10. const char name[7] = { ' ', 'P', 'N', 'B', 'R', 'Q', 'K' };
  11.  
  12. // Castle mask as suggested by Tom Kerrigan's Simple Chess Program
  13. // The basic idea is to speed up change of castle rights by AND
  14. // operations.
  15. const int castle_mask[64] = {
  16.                13, 15, 15, 15, 12, 15, 15, 14,
  17.                15, 15, 15, 15, 15, 15, 15, 15,
  18.                15, 15, 15, 15, 15, 15, 15, 15,
  19.                15, 15, 15, 15, 15, 15, 15, 15,
  20.                15, 15, 15, 15, 15, 15, 15, 15,
  21.                15, 15, 15, 15, 15, 15, 15, 15,
  22.                15, 15, 15, 15, 15, 15, 15, 15,
  23.                 7, 15, 15, 15,  3, 15, 15, 11,
  24. };
  25.  
  26. // default square
  27. const square empty = { 0, -1 };
  28.  
  29.  
  30.  
  31.